// 综合整治  所有接口
import request from '@/utils/request'

// 16.3.查询项目列表
export function projectManagement(param) {
	return request({
		url: 'rest/projectManagement/getListByLike',
		method: 'post',
		data: param
	})
}

// 
export function projectManagement_getList(param) {
	return request({
		url: 'rest/projectManagement/getList',
		method: 'post',
		data: param
	})
}

// 查询线路/区间/站点树
export function getLineSectionSiteTreeByLike(param) {
	return request({
		url: 'rest/lineSite/getLineSectionSiteTreeByLike',
		method: 'post',
		data: param
	})
}


// 查询钢环的工序名称列表
export function steelRingProcedureGetList(param) {
	return request({
		url: 'rest/steelRingProcedure/getProcedureList',
		method: 'post',
		data: param
	})
}

//只查询钢环数据，微扰动按照原来的接口查询
export function getSteelRingList(param) {
	return request({
		url: 'rest/pmProcessReport/getAppGhWorkload',
		method: 'post',
		data: param
	})
}

// 查询钢环的环号
export function pmPlanWorkloadList(param) {
	return request({
		url: 'rest/pmPlanWorkload/list',
		method: 'post',
		data: param
	})
}

// 查询项目的区间/站点下可以上报的钢环环号
export function getReportableRingNumber(param) {
	return request({
		url: 'rest/pmprWorkload/getReportableRingNumber',
		method: 'post',
		data: param
	})
}

// 查询orgIds
export function projectOrgTreeData(param) {
	return request({
		url: 'rest/projectOrg/treeData',
		method: 'post',
		data: param
	})
}

//10.3.2.获取标准数据
export function standardDataList(param) {
	return request({
		url: 'rest/standardData/list',
		method: 'post',
		data: param
	})
}
//2.1.1.获取人员列表
export function personGetListByOrgId(param) {
	return request({
		url: 'rest/person/getListByOrgId',
		method: 'post',
		data: param
	})
}
// 获取施工工序下已经选择过的环号
export function getReportedProcedureList(param) {
	return request({
		url: 'rest/pmprWorkload/getReportedProcedureList',
		method: 'post',
		data: param
	})
}

//获取进度填报记录列表
export function pmProcessReportGetList(param) {
	return request({
		url: 'rest/pmProcessReport/getList',
		method: 'post',
		data: param
	})
}

//18.2.获取进度/质量上报详情
export function pmProcessReportGetDetail(param) {
	return request({
		url: 'rest/pmProcessReport/getDetail',
		method: 'post',
		data: param
	})
}

//进度/质量填报审核-流转日志 (详情页流程)
export function pmprLogGetListByPmprId(param) {
	return request({
		url: 'rest/pmprLog/getListByPmprId',
		method: 'post',
		data: param
	})
}

// 进度审核
export function pmProcessReportApproval(param) {
	return request({
		url: 'rest/pmProcessReport/approval',
		method: 'post',
		data: param
	})
}

// 查询项目列表
export function projectManagementGetListByLike(param) {
	return request({
		url: 'rest/projectManagement/getListByLike',
		method: 'post',
		data: param
	})
}
// 修改项目状态
export function projectManagementUpdatePmState(param) {
	return request({
		url: 'rest/projectManagement/updatePmState',
		method: 'post',
		data: param
	})
}

// 获取材料树形结构
export function getMaterialTree(param) {
	return request({
		url: 'rest/material/getMaterialTree',
		method: 'post',
		data: param
	})
}

// 进度保存接口
export function pmProcessReportSaveEx(param) {
	return request({
		url: 'rest/pmProcessReport/saveEx',
		method: 'post',
		data: param
	})
}

// 项目站点区间的进度
export function getProcessByLineSiteSectionId(param) {
	return request({
		url: 'rest/pmProcessReport/getProcessByLineSiteSectionId',
		method: 'post',
		data: param
	})
}

// 项目站点区间的进度填报列表
export function getListByLineSiteSectionId(param) {
	return request({
		url: 'rest/pmProcessReport/getListByLineSiteSectionId',
		method: 'post',
		data: param
	})
}

// 查询项目工作计划的线路/区间/站点树
export function getPlanLineSectionSiteTreeByLike(param) {
	return request({
		url: 'rest/lineSite/getPlanLineSectionSiteTreeByLike',
		method: 'post',
		data: param
	})
}

// 通过质量上报记录查询施工工法的进度
export function getProcessById(param) {
	return request({
		url: 'rest/pmProcessReport/getProcessById',
		method: 'post',
		data: param
	})
}

// 只获取自己上报的记录，适用app接口
export function getListByUser(param) {
	return request({
		url: 'rest/pmProcessReport/getListByUser',
		method: 'post',
		data: param
	})
}
//图片水印
export function watermark(param) {
	return request({
		url: 'composite/picture/addPictureText',
		method: 'post',
		data: param
	})
}

//监控调用-查看记录
export function pmBindEqGetList(param) {
	return request({
		url: 'rest/pmBindEq/getList',
		method: 'post',
		data: param
	})
}

//获取单次绑定记录详情
export function pmBindEqGetDetail(param) {
	return request({
		url: 'rest/pmBindEq/getDetail',
		method: 'post',
		data: param
	})
}
//解绑设备
export function pmBindEqReleaseEqs(param) {
	return request({
		url: 'rest/pmBindEq/releaseEqs',
		method: 'post',
		data: param
	})
}
// 20.1.项目区间/站点绑定设备（批量）
export function pmBindEqBatchBind(param) {
	return request({
		url: 'rest/pmBindEq/batchBind',
		method: 'post',
		data: param
	})
}

// 接口说明：扫二维码设备识别后，通过二维码中的设备编号信息查询
export function getBindInfoByDeviceId(param) {
	return request({
		url: 'rest/pmBindEq/getBindInfoByDeviceId',
		method: 'post',
		data: param
	})
}
// 2.2.1.获取设备/材料类型树形列表
export function deviceTypeGetListByNameByLike(param) {
	return request({
		url: 'rest/ex/deviceType/getListByNameByLike',
		method: 'post',
		data: param
	})
}
// 查询材料规格型号
export function getDeviceTypeAttributeList(param) {
	return request({
		url: 'rest/deviceTypeAttribute/list',
		method: 'post',
		data: param
	})
}
// 获取专项列表
export function specialTasksSetting(param) {
	return request({
		url: 'rest/specialTasksSetting/getList',
		method: 'post',
		data: param
	})
}
// 通过专项列表id获取工作面
export function getWorkingSurface(param) {
	return request({
		url: 'rest/workingSurface/getWorkingSurface',
		method: 'post',
		data: param
	})
}

// 获取维保类施工工序
export function diseaseMaterial_list(param) {
	return request({
		url: 'rest/diseaseMaterial/list',
		method: 'post',
		data: param
	})
}
export function getProjectOverviewAndProgressStatisticsById(param) {
	return request({
		url: 'rest/projectManagement/getProjectOverviewAndProgressStatisticsById',
		method: 'post',
		data: param
	})
}
export function getPlanLineList(param) {
	return request({
		url: 'rest/lineSite/getPlanLineList',
		method: 'post',
		data: param
	})
}
export function pmprPmProcessReportDateList(param) {
	return request({
		url: 'rest/pmProcessReport/pmprPmProcessReportDateList',
		method: 'post',
		data: param
	})
}
export function selectWorkloadListByIdAndDate(param) {
	return request({
		url: 'rest/pmprWorkload/selectWorkloadListByIdAndDate',
		method: 'post',
		data: param
	})
}
export function dailyBriefingDateList(param) {
	return request({
		url: 'rest/dailyPreShiftBriefing/dailyBriefingDateList',
		method: 'post',
		data: param
	})
}
export function dailyDisclosurePictures(param) {
	return request({
		url: 'rest/constructionPlan/dailyDisclosurePictures',
		method: 'post',
		data: param
	})
}
export function getIiqclqcfqcoqc(param) {
	return request({
		url: 'rest/pmprWorkload/getIiqclqcfqcoqc',
		method: 'post',
		data: param
	})
}
export function personnelStatistics(param) {
	return request({
		url: 'rest/dailyPreShiftBriefing/personnelStatistics',
		method: 'post',
		data: param
	})
}
export function personnelStatisticsChart(param) {
	return request({
		url: 'rest/dailyPreShiftBriefing/personnelStatisticsChart',
		method: 'post',
		data: param
	})
}
export function getListByPmprIds(param) {
	return request({
		url: 'rest/pmProcessReport/getListByPmprIds',
		method: 'post',
		data: param
	})
}
export function getPlanList(param) {
	return request({
		url: 'rest/lineSection/getPlanList',
		method: 'post',
		data: param
	})
}
export function getPlanSiteList(param) {
	return request({
		url: 'rest/lineSite/getPlanSiteList',
		method: 'post',
		data: param
	})
}
export function getSteelRingWorkloadList(param) {
	return request({
		url: 'rest/steelRingProcedure/getList',
		method: 'post',
		data: param
	})
}
// 质安管理-每日施工计划-获取工程维保项目
export function lineSection_maintenanceProjectNodeTree(param) {
	return request({
		url: 'rest/lineSection/maintenanceProjectNodeTree',
		method: 'post',
		data: param
	})
}


export function constructionPlan_list(param) {
  return request({
    url: 'rest/constructionPlan/list',
    method: 'post',
    data: param
  })
}

export function constructionPlan_get(param) {
  return request({
    url: 'rest/constructionPlan/get',
    method: 'post',
    data: param
  })
}
